home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineButton2_1275 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  551 b   |  22 lines

  1. on(release){
  2.    if(_root.magRune >= 6 && _root.fireRune >= 6 && _root.exploRune >= 4 && this.timey.timer == 100)
  3.    {
  4.       this.timey.timer = 0;
  5.       this.timey.timeIt = 0.23 + _root.spe * 0.01;
  6.       if(this.timey.timeIt > 1.4)
  7.       {
  8.          this.timey.timeIt = 1.4;
  9.       }
  10.       this.timey._visible = true;
  11.       _root.magRune -= 6;
  12.       _root.exploRune -= 4;
  13.       _root.fireRune -= 6;
  14.       _root.storm._visible = true;
  15.       _root.storm.gotoAndPlay(1);
  16.    }
  17.    else
  18.    {
  19.       _root.messy = "Not enough Runes";
  20.    }
  21. }
  22.